device = 'Dev1';

chList = {'ai0'};

coeff_V2mW = 10.0;
f = @(data) coeff_V2mW *data;

StateMonitor(device, 'func', f, 'channel', chList, 'label', {'Power'}, 'unit', 'mW')